﻿@{
    ViewData["Title"] = "Role";
     Layout = "~/Views/Shared/Temp.cshtml";
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Demo</title>
    @* <script src="~/layui/layui.js"></script>
    <link href="~/layui/css/layui.css" rel="stylesheet" /> *@
</head>
<body>
    <h3>角色添加</h3>
    <div>
        <form class="layui-form" action="">
            <div class="layui-form-item">
                <label class="layui-form-label" style="width: 100px;">角色名称</label>
                <div class="layui-input-inline layui-input-wrap">
                    <input type="text" id="name" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label" style="width: 100px;">角色类别</label>
                <div class="layui-input-inline layui-input-wrap">
                    <input type="text" id="role_type" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label" style="width: 100px;">数据范围</label>
                <div class="layui-input-inline layui-input-wrap">
                    <input type="radio" name="data_scope" value="1" />全部数据
                    <input type="radio" name="data_scope" value="2" />公司已下数据
                    <input type="radio" name="data_scope" value="8" checked />个人数据
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label" style="width: 100px;">角色级别</label>
                <div class="layui-input-inline layui-input-wrap">
                    <input type="radio" name="role_level" value="0" checked />高级
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label" style="width: 100px;">状态</label>
                <div class="layui-input-inline layui-input-wrap">
                    <input type="radio" name="useable" value="0" />禁用
                    <input type="radio" name="useable" value="1" />启用
                </div>
            </div>
            <div class="layui-form-item">
                <input type="button" value="添加" onclick="UserAdd()" class="layui-btn" />
            </div>
        </form>

    </div>
   
    <script src="~/js/user/role.js"></script>

</body>
</html>